package com.ebupt.migu.music.global.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ebupt.migu.globalpopup.entity.ActivityInfo;
import com.ebupt.migu.music.global.vo.PopupExportVo;
import com.ebupt.migu.music.global.vo.PopupVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 活动信息表 Mapper 接口
 *
 * @author Blade
 * @since 2021 -11-17
 */
@Mapper
public interface ActivityInfoMapper extends BaseMapper<ActivityInfo> {

    /**
     * Revocation.
     *
     * @param activityInfo the activity info
     */
    void revocation(@Param("a") ActivityInfo activityInfo);

    /**
     * Update status byactive id long.
     *
     * @param activityId the activity id
     * @param status     the status
     * @return the long
     */
    Long updateStatusByactiveId(@Param("activityId") String activityId,@Param("status") Integer status);

    /**
     * Count query integer.
     *
     * @param params the params
     * @return the integer
     */
    Integer countQuery(Map<String, Object> params);
    Integer countSummary(Map<String, Object> params);

    /**
     * Query map list.
     *
     * @param params the params
     * @return the list
     */
    List<PopupVo> queryMap(Map<String, Object> params);
    List<PopupVo> querySummary(Map<String, Object> params);

    /**
     * 全量导出查询
     * @param params
     * @return
     */
    List<PopupExportVo> exportMap(Map<String, Object> params);
    List<PopupExportVo> exportSummary(Map<String, Object> params);
}
